package com.example.obj;

import java.util.Collection;

public class GroupSet extends BaseSet<GroupObject> {
	public GroupSet(){
		super();
	}

	public GroupSet(Collection<GroupObject> groups){
		super(groups);
	}

	public GroupSet without(GroupObject group) {
		GroupSet groupSet = new GroupSet(getElements());
		groupSet.remove(group);
		return groupSet;	
	}
	
	public GroupSet with(GroupObject group) {
		GroupSet groupSet = new GroupSet(getElements());
		group.setId("$$$");
		groupSet.add(group);
		group.setId(null);
		return groupSet;	
	}
}
